#include <stdio.h>
#include "heap.h"

void print(queue_element a[], int n);

int main()
{
	int n = 10, i;
	queue_element a[10];
	for(i = 0; i < n; i++)
	{
		a[i].val = n - i;
		a[i].stream_index = 100;
	}
	print(a, n);

	heapsort(a, n);

	print(a, n);

	return 0;
}

void print(queue_element a[], int n)
{
	int i;
	for(i = 0; i < n; i++)
		printf("%d ", a[i].val);
	printf("\n");
}
